package com.itqf.service.impl;

import com.itqf.dao.TbUserDAO;
import com.itqf.entity.TbUser;
import com.itqf.service.TbUserService;

/**
 * 姓名：刘珈麟
 * 项目名：spring-01
 * 日期：2021/6/27
 * 描述：
 */

public class TbUserServiceImpl implements TbUserService {
    // 硬编码  强耦合
    //private UserDAO userDAO= new UserDAOImpl();
    private TbUserDAO userDAO;
    @Override
    public TbUser queryUserById(Integer id) {
        return userDAO.queryUserById(id);
    }

    public void setTbUserDAO(TbUserDAO tbUserDAO) {
        this.userDAO = tbUserDAO;
    }
}
